projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
661f0f5
)
cssvalue: Print an error when failing to parse background-position
author
Benjamin Otte
<otte@redhat.com>
Fri, 12 Oct 2012 15:36:28 +0000
(17:36 +0200)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 12 Oct 2012 15:45:45 +0000
(17:45 +0200)
... in the case where a completely invalid value was used.
gtk/gtkcsspositionvalue.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcsspositionvalue.c
b/gtk/gtkcsspositionvalue.c
index 6f33de73a1e2a2c7881fb1d4fd9fcc402ebd84ab..09c845d2fc07e5c26f8ec401ba7bead57a117c1a 100644
(file)
--- a/
gtk/gtkcsspositionvalue.c
+++ b/
gtk/gtkcsspositionvalue.c
@@
-224,7
+224,10
@@
_gtk_css_position_value_parse (GtkCssParser *parser)
return NULL;
}
else
- return NULL;
+ {
+ _gtk_css_parser_error (parser, "Unrecognized position value");
+ return NULL;
+ }
}
for (second = 0; names[second].name != NULL; second++)